--- title: Title keywords: fastai sidebar: home_sidebar ---
The first thing we need to do is download the data.
First of all, let's install the kaggle api and configure it with API credentials.
Let's create a folder to download the competition files.
mkdir data
Let's download the files now (make sure you accept competition rules on Kaggle first or else you will not be able to access the data!).
!kaggle competitions download birdsong-recognition -p data
!ls data
%%capture
!unzip data/birdsong-recognition.zip -d data
!ls data
Let's take a look at train.csv.
import pandas as pd
train = pd.read_csv('data/train.csv')
train.shape
train.head()
classes = train.ebird_code.unique().tolist()
len(classes)
We can listen to the longest recording in the train set:
from IPython.lib.display import Audio
Audio('data/train_audio/comrav/XC246425.mp3')